package com.api.client;

import com.common.domain.po.LikedRecord;
import com.common.domain.po.Video;
import com.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;

/**
 * @author 路亚
 * @version 0.1
 * @className VideoClient
 * @description
 * @date 2024/12/14 15:10
 * @since jdk11
 */
@FeignClient(name = "video-service", path = "/video")
public interface VideoClient {

    @GetMapping("/listByIds")
    Result listByIds(@RequestParam Collection<Long> ids);

    @GetMapping("/queryByIds")
    List<Video> queryByIds(@RequestParam Collection<Long> ids);

    @GetMapping("/item/queryByVideoItemId")
    LikedRecord queryByVideoItemId(@RequestParam Long id);

    @GetMapping("/queryIds")
    List<Video> queryIds();
}
